package com.example.man

import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController

@RestController
class ManController {
	
	@Autowired
	private ManService manService;
	
	@GetMapping("/ok")
	String home() {
		Man man = manService.getInfoByName("zhwei");
		
		//return "ok ===> groovy,name:"+man.name
		String name = man.name
		"Hello ${name}"
		
	}
}


